package com.trail;

import com.dao.SourceTypeDAO;
import com.dao.impl.SourceTypeDAOImpl;
import com.rev.Sourcetype;


public class Trail {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Sourcetype targetType = new Sourcetype(5, "lolo", null);
		SourceTypeDAOImpl dao = new SourceTypeDAOImpl();
		System.out.println(dao.insert(targetType) + "***");
		Sourcetype targetType6 = new Sourcetype(6, "l8lo", null);
		
		System.out.println(dao.insert(targetType6) + "*");
		System.out.println(dao.findById(6).getSourceTypeRef()+ "///");
		System.out.println(dao.findAll().get(1).getSourceTypeRef());
	}

}
